﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             x:Class="OpenLightGroup.Visualizers.Controls.PeakVisualizer"
             Width="304"
             Height="300"
             mc:Ignorable="d">
    <UserControl.Resources>
        <LinearGradientBrush x:Key="MeterBrush"
                             EndPoint="0.5,1"
                             StartPoint="0.5,0">
            <GradientStop Color="#FFE61111"
                          Offset="0.02" />
            <GradientStop Color="#19E61111" />
            <GradientStop Color="#FFE68E11" Offset="0.508"/>
            <GradientStop Color="#FFEDE611" Offset="1"/>
        </LinearGradientBrush>
        <Style x:Key="MeterStyle"
               TargetType="Rectangle">
            <Setter Property="Margin"
                    Value="1,0,0,0" />
            <Setter Property="Stroke"
                    Value="Black" />
            <Setter Property="VerticalAlignment"
                    Value="Bottom" />
            <Setter Property="HorizontalAlignment"
                    Value="Center" />
            <Setter Property="Fill"
                    Value="{StaticResource MeterBrush}" />
            <Setter Property="Height"
                    Value="5" />
            <Setter Property="Width"
                    Value="15.2" />
        </Style>
    </UserControl.Resources>
    <StackPanel x:Name="LayoutRoot"
                Orientation="Horizontal"
                Margin="0" HorizontalAlignment="Center" d:LayoutOverrides="VerticalMargin">
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      <Rectangle Style="{StaticResource MeterStyle}" />
      
    </StackPanel>
</UserControl>
